import request from '@/utils/request'

// 查询平安指数管理列表
export function listSafeness(query) {
  return request({
    url: '/backstage/safeness/list',
    method: 'get',
    params: query
  })
}

// 查询平安指数管理详细
export function getSafeness(cSafenessId) {
  return request({
    url: '/backstage/safeness/' + cSafenessId,
    method: 'get'
  })
}

// 新增平安指数管理
export function addSafeness(data) {
  return request({
    url: '/backstage/safeness',
    method: 'post',
    data: data
  })
}

// 修改平安指数管理
export function updateSafeness(data) {
  return request({
    url: '/backstage/safeness',
    method: 'put',
    data: data
  })
}

// 删除平安指数管理
export function delSafeness(cSafenessId) {
  return request({
    url: '/backstage/safeness/' + cSafenessId,
    method: 'delete'
  })
}
